﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.BankApplication.Engine
{
    /// <summary>
    /// Silver Account
    /// </summary>
    public class SilverAccount : AccountBase
    {

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="holder">the <see cref="IBankCustomer"/> that holds the account.</param>
        /// <param name="initialDeposit">the amount of money to deposit.</param>
        internal SilverAccount(IBankCustomer holder, double initialDeposit)
            : base(holder, initialDeposit)
        {}

        /// <summary>
        /// Withdraws the monthly Fees from the Account.
        /// </summary>
        public override void WithdrawMonthlyFees()
        {
            Withdraw(20);
        }

        /// <summary>
        /// Gets the maximum overdrawn.
        /// </summary>
        /// <returns>System.Double.</returns>
        public override double GetMaxOverdrawn()
        {
            return 100;
        }
    }
}
